package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.dao.impl.BookDaoImpl;
import com.itheima.service.BookService;

/**
 * @author: dh
 * @date: 2023-10-21 11:29
 * 业务层接口BookService的实现类.
 */
public class BookServiceImpl implements BookService {

    /**
     * 创建一个数据层接口BookDao的实现类对象.
     */
    private BookDao bookDao = new BookDaoImpl();

    @Override
    public void save() {

        System.out.println("book service save ...");
        bookDao.save();
    }
}
